package com.glq.book.entity;

import java.util.Date;

public class Borrow {
    private Integer id;
    private String bookName;
    private String username;
    private String state;
    private Date borrowTime;
    private Date repayTime;

    @Override
    public String toString() {
        return "Borrow{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", username='" + username + '\'' +
                ", state='" + state + '\'' +
                ", borrowTime=" + borrowTime +
                ", repayTime=" + repayTime +
                '}';
    }

    public Borrow(Integer id, String bookName, String username, String state, Date borrowTime, Date repayTime) {
        this.id = id;
        this.bookName = bookName;
        this.username = username;
        this.state = state;
        this.borrowTime = borrowTime;
        this.repayTime = repayTime;
    }

    public Borrow() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Date getRepayTime() {
        return repayTime;
    }

    public void setRepayTime(Date repayTime) {
        this.repayTime = repayTime;
    }
}
